package com.ihteima.exception;

import lombok.Data;

/**
 * ClassName: BizException
 * Package: com.ihteima.exception
 * Description:
 *
 * @Auther gongkaiming
 * @Create 2025/10/26 17:42
 * @Version 1.0
 */
@Data
public class BizException extends RuntimeException{

    private String errorCode;

    private String errorMessage;
    public BizException(BaseExceptionInterface baseExceptionInterface) {
        this.errorCode = baseExceptionInterface.getErrorCode();
        
        this.errorMessage = baseExceptionInterface.getErrorMessage();
    }
}
